<?php
class sample{
    function getUsers () {
    	$mysql = mysql_connect(localhost, "root", "");
    	
    	mysql_select_db( "empresa" );
    	
		$Query = "SELECT * from cliente";
		$Result = mysql_query( $Query );
		while ($row = mysql_fetch_object($Result)) {
   			$return[] = $row;
		}
		return( $return );
	}
}
?>